package avicit.bdp.dms.das.dto;

/**
 * @author mayanj
 * 表字段比对返回体
 */
public class ColumnCompareResponseDTO {

    /**
     * 字段名称
     */
    private ColumnCompareResponseDetail columnName;

    /**
     * 字段类型
     */
    private ColumnCompareResponseDetail columnType;

    /**
     * 字段长度
     */
    private ColumnCompareResponseDetail columnLength;

    /**
     * 字段精度
     */
    private ColumnCompareResponseDetail precision;

    /**
     * 是否主键
     */
    private ColumnCompareResponseDetail primaryKey;

    /**
     * 是否主键
     */
    private ColumnCompareResponseDetail foreignKey;

    /**
     * 字段唯一性
     */
    private ColumnCompareResponseDetail unique;

    /**
     * 字段是否可为空
     */
    private ColumnCompareResponseDetail nullable;

    /**
     * 字段备注
     */
    private ColumnCompareResponseDetail remark;


    public ColumnCompareResponseDetail getColumnName() {
        return columnName;
    }

    public void setColumnName(ColumnCompareResponseDetail columnName) {
        this.columnName = columnName;
    }

    public ColumnCompareResponseDetail getColumnType() {
        return columnType;
    }

    public void setColumnType(ColumnCompareResponseDetail columnType) {
        this.columnType = columnType;
    }

    public ColumnCompareResponseDetail getColumnLength() {
        return columnLength;
    }

    public void setColumnLength(ColumnCompareResponseDetail columnLength) {
        this.columnLength = columnLength;
    }

    public ColumnCompareResponseDetail getPrecision() {
        return precision;
    }

    public void setPrecision(ColumnCompareResponseDetail precision) {
        this.precision = precision;
    }

    public ColumnCompareResponseDetail getPrimaryKey() {
        return primaryKey;
    }

    public void setPrimaryKey(ColumnCompareResponseDetail primaryKey) {
        this.primaryKey = primaryKey;
    }

    public ColumnCompareResponseDetail getForeignKey() {
        return foreignKey;
    }

    public void setForeignKey(ColumnCompareResponseDetail foreignKey) {
        this.foreignKey = foreignKey;
    }

    public ColumnCompareResponseDetail getUnique() {
        return unique;
    }

    public void setUnique(ColumnCompareResponseDetail unique) {
        this.unique = unique;
    }

    public ColumnCompareResponseDetail getNullable() {
        return nullable;
    }

    public void setNullable(ColumnCompareResponseDetail nullable) {
        this.nullable = nullable;
    }

    public ColumnCompareResponseDetail getRemark() {
        return remark;
    }

    public void setRemark(ColumnCompareResponseDetail remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "ColumnCompareResponseDTO{"
                + "columnName=" + columnName
                + ", columnType=" + columnType
                + ", columnLength=" + columnLength
                + ", precision=" + precision
                + ", primaryKey=" + primaryKey
                + ", foreignKey=" + foreignKey
                + ", unique=" + unique
                + ", nullable=" + nullable
                + ", remark=" + remark
                + '}';
    }
}
